<?php
class Application_Model_DbTable_Compra extends ZendExt_Db_Table_Abstract {
	protected $_schema = "INFOCOMEDOR";
	protected $_name = "COMPRA";
	public $_rowClass = "Application_Model_Compra";
	public $_primary = array('COD_SUCURSAL','COD_PROVEEDOR','NRO_FACTURA_COMPRA');
	public $_primary_auto = FALSE;
	public $_esquema = "INFOCOMEDOR";
        public $_nombre = "COMPRA";
        public $_foreignkey = array('Application_Model_DbTable_Sucursal' => array('COD_SUCURSAL'),
                                    'Application_Model_DbTable_Proveedor' => array('COD_PROVEEDOR'),
                                    'Application_Model_DbTable_Moneda' => array('COD_MONEDA_COMPRA'),
                                    'Application_Model_DbTable_Usuario' => array('COD_USUARIO'),
                                    'Application_Model_DbTable_FormaPago' => array('COD_FORMA_PAGO')
                                    );
} ?>
